package com.wxm.killing.mq.common.swagger;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description swa
 * @author: wxm
 * @date: 2019/10/10 9:57
 * @version: 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = SwaggerProperties.SWAGGER2_PREFIX)
public class SwaggerProperties {
    public static final String SWAGGER2_PREFIX = "swagger";
    // 包名
    private String basePackage;
    // 标题
    private String title = "";
    // 描述
    private String description = "";
    //
    private String termsOfServiceUrl = "";
    // 联系人
    private String contactName = "";
    //联系人邮箱
    private String contactEmail;
    // 版本
    private String version;
    // 是否开启swagger，正式环境一般是需要关闭的，可根据springboot的多环境配置进行设置
    private boolean enable;
}
